package test.thread;

import java.util.ArrayList;

import javax.swing.text.StyledEditorKit.BoldAction;

public 	class ThreadOne implements Runnable{
	
	ArrayList<String> list;
	
	public ThreadOne(ArrayList<String> list) {
		this.list = list;
	}
	
	@Override
	public void run() {
		list.add("aa");
		list = new ArrayList<>();
		list.add("jjjj");
		System.out.println("zi:"+list.toString());
		
	}
	
}
